package com.ccut.xunfeiSpringboot.mapper;

import com.ccut.xunfeiSpringboot.entity.RecommendCareers;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface RecommendedJobsMapper {

    @Select("select * from recommended_position where user_id = #{userId}")
    List<RecommendCareers> getRecommendedCareers(Long userId);

    void updateRecommendedJobs(RecommendCareers recommendJob);

    void insertRecommendedJobs(RecommendCareers recommendJob);

    @Delete("delete from recommended_position where id = #{id}")
    void removeRecommendedCarreeer(Long id);
}
